package cn.ziroom.system.domain;

import java.sql.Timestamp;

import cn.common.service.GeneralCriteria;

/**
 * 记录日志的信息实体
 * 
 * @author manguo
 *
 */
public class Message extends GeneralCriteria {

	public static String SUCCESS = "success";		//接口返回成功信息
	public static String ERROR ="error";			//接口检查错误
	public static String EXCEPTION = "exception";	//接口执行异常
	public static String REQUEST = "request";		//资产调用的信息
	public static String INNER_ERROR="inner_error";	//在环绕通知的内部程序执行错误。

	private static final long serialVersionUID = -2144614786266439804L;

	//构造方法
	public Message(){
		
	}
	
	private Integer id;
	private String functionName;
	private String contractCode;
	private String customerCode;
	private String houseCode;
	private String roomCode;
	private String status;
	private Timestamp createTime;
	private String json;
	
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getFunctionName() {
		return functionName;
	}
	public void setFunctionName(String functionName) {
		this.functionName = functionName;
	}
	public String getContractCode() {
		return contractCode;
	}
	public void setContractCode(String contractCode) {
		this.contractCode = contractCode;
	}
	public String getHouseCode() {
		return houseCode;
	}
	public void setHouseCode(String houseCode) {
		this.houseCode = houseCode;
	}
	public String getRoomCode() {
		return roomCode;
	}
	public void setRoomCode(String roomCode) {
		this.roomCode = roomCode;
	}
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	public Timestamp getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Timestamp createTime) {
		this.createTime = createTime;
	}
	public String getJson() {
		return json;
	}
	public void setJson(String json) {
		this.json = json;
	}
	
	public String getCustomerCode() {
		return customerCode;
	}
	public void setCustomerCode(String customerCode) {
		this.customerCode = customerCode;
	}
	@Override
	public String toString() {
		return "Message [id=" + id + ", functionName=" + functionName
				+ ", contractCode=" + contractCode + ", customerCode="
				+ customerCode + ", houseCode=" + houseCode + ", roomCode="
				+ roomCode + ", status=" + status + ", createTime="
				+ createTime + ", json=" + json + "]";
	}
}
